package cn.flying.financial.ccs.controller.app.handler;

import javax.annotation.Resource;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cn.flying.cloud.base.common.vo.Rt;
import cn.flying.financial.ccs.process.productinfo.ProductInfoProcess;
import cn.flying.financial.ccs.process.productinfo.bo.ProductInfoReq;
import cn.flying.financial.ccs.process.productinfo.bo.ProductInfoResp;

/**
 * 产品信息查询控制器
 *
 * @author: lvyong
 * @date: 2023年01月29日 13:44
 * @version: 1.0
 */
@RestController
public class ProductInfoHandler {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Resource
    private ProductInfoProcess productInfoProcess;

    @PostMapping("getProductInfo")
    public Rt<List<ProductInfoResp>> getProductInfo(@Validated @RequestBody ProductInfoReq req) {
        List<ProductInfoResp> respList = productInfoProcess.getRepaymentMethod(req);
        return Rt.success(respList);
    }


}
